<template>
  <el-descriptions v-if="false">
    <el-descriptions-item v-if="false">
    </el-descriptions-item>
  </el-descriptions>



  <div class="el-descriptions el-descriptions--default" data-v-687f4388="">
    <div class="el-descriptions__body">
      <table class="el-descriptions__table is-bordered">
        <tbody>
        <tr>
          <td class="el-descriptions__cell el-descriptions__label is-bordered-label is-left" colspan="1">
            资源编号
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{origin.trafficNo}}
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{reviewObj.trafficNo}}
            <el-tag type="warning" v-if="origin.trafficNo!==reviewObj.trafficNo">有变更</el-tag>
          </td>
        </tr>

        <tr>
          <td class="el-descriptions__cell el-descriptions__label is-bordered-label is-left" colspan="1">
            资源名称
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{origin.trafficName}}
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{reviewObj.trafficName}}
            <el-tag type="warning" v-if="origin.trafficName!==reviewObj.trafficName">有变更</el-tag>
          </td>
        </tr>

        <tr>
          <td class="el-descriptions__cell el-descriptions__label is-bordered-label is-left" colspan="1">
            出发时间
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{origin.startTime}}
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{reviewObj.startTime}}
            <el-tag type="warning" v-if="origin.startTime!==reviewObj.startTime">有变更</el-tag>
          </td>
        </tr>

        <tr>
          <td class="el-descriptions__cell el-descriptions__label is-bordered-label is-left" colspan="1">
            到达时间
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{origin.reachTime}}
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{reviewObj.reachTime}}
            <el-tag type="warning" v-if="origin.reachTime!==reviewObj.reachTime">有变更</el-tag>
          </td>
        </tr>

        <tr>
          <td class="el-descriptions__cell el-descriptions__label is-bordered-label is-left" colspan="1">
            出发城市
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{cityToStr(origin.startCity) }}
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{cityToStr(reviewObj.startCity)}}
            <el-tag type="warning" v-if="origin.startCityId!==reviewObj.startCityId">有变更</el-tag>
          </td>
        </tr>

        <tr>
          <td class="el-descriptions__cell el-descriptions__label is-bordered-label is-left" colspan="1">
            目的城市
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{cityToStr(origin.destCity) }}
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{cityToStr(reviewObj.destCity)}}
            <el-tag type="warning" v-if="origin.destCityId!==reviewObj.destCityId">有变更</el-tag>
          </td>
        </tr>

        <tr>
          <td class="el-descriptions__cell el-descriptions__label is-bordered-label is-left" colspan="1">
            出发地址
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{origin.startAddress}}
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{reviewObj.startAddress}}
            <el-tag type="warning" v-if="origin.startAddress!==reviewObj.startAddress">有变更</el-tag>
          </td>
        </tr>
        <tr>
          <td class="el-descriptions__cell el-descriptions__label is-bordered-label is-left" colspan="1">
            到达地址
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{origin.destAddress}}
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{reviewObj.destAddress}}
            <el-tag type="warning" v-if="origin.destAddress!==reviewObj.destAddress">有变更</el-tag>
          </td>
        </tr>
        <tr>
          <td class="el-descriptions__cell el-descriptions__label is-bordered-label is-left" colspan="1">
            负责人电话
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{origin.phone}}
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{reviewObj.phone}}
            <el-tag type="warning" v-if="origin.phone!==reviewObj.phone">有变更</el-tag>
          </td>
        </tr>
        <tr>
          <td class="el-descriptions__cell el-descriptions__label is-bordered-label is-left" colspan="1">
            默认价格
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{origin.defaultPrice}}
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{reviewObj.defaultPrice}}
            <el-tag type="warning" v-if="origin.defaultPrice!==reviewObj.defaultPrice">有变更</el-tag>
          </td>
        </tr>

        <tr>
          <td class="el-descriptions__cell el-descriptions__label is-bordered-label is-left" colspan="1">
            默认库存
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{origin.defaultStore}}
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{reviewObj.defaultStore}}
            <el-tag type="warning" v-if="origin.defaultStore!==reviewObj.defaultStore">有变更</el-tag>
          </td>
        </tr>

        <tr>
          <td class="el-descriptions__cell el-descriptions__label is-bordered-label is-left" colspan="1">
            开放天数
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{origin.openDay}}
          </td>
          <td class="el-descriptions__cell el-descriptions__content is-bordered-content is-left" colspan="1">
            {{reviewObj.openDay}}
            <el-tag type="warning" v-if="origin.openDay!==reviewObj.openDay">有变更</el-tag>
          </td>
        </tr>

        </tbody>
      </table>
    </div>
  </div>
</template>

<script setup>

import MyElTag from "~/components/MyElTag.vue";
import {cityToStr} from "~/config/utils.js";

defineProps(['origin','reviewObj'])
</script>

<style scoped>

</style>